from django.urls import path
from . import views

app_name = 'yzh_resource'

urlpatterns = [
    # 资源列表
    path('yzh-resources', views.resource_list, name='resource_list'),
    
    # 资源详情、更新和删除
    path('yzh-resources/<int:resource_id>', views.resource_detail, name='resource_detail'),
    
    # 上传资源
    path('yzh-resources/upload', views.resource_upload, name='resource_upload'),
    
    # 下载资源
    path('yzh-resources/download/<int:resource_id>', views.resource_download, name='resource_download'),
    
    # 资源分类列表
    path('yzh-resource-categories', views.resource_categories, name='resource_categories'),
] 